package com.ruoyi.system.service;

import com.ruoyi.system.domain.TemporaryStaffAccountCertificate;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;
import java.util.Map;

/**
 * 临时施工人员证书信息(TemporaryStaffAccountCertificate)表服务接口
 *
 * @author makejava
 * @since 2023-06-06 14:08:36
 */
public interface TemporaryStaffAccountCertificateService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    TemporaryStaffAccountCertificate queryById(Integer id);

    /**
     * 分页查询
     *
     * @param temporaryStaffAccountCertificate 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<TemporaryStaffAccountCertificate> queryByPage(TemporaryStaffAccountCertificate temporaryStaffAccountCertificate, PageRequest pageRequest);

    List<TemporaryStaffAccountCertificate> queryAll(TemporaryStaffAccountCertificate temporaryStaffAccountCertificate);

    /**
     * 新增数据
     *
     * @param temporaryStaffAccountCertificate 实例对象
     * @return 实例对象
     */
    TemporaryStaffAccountCertificate insert(TemporaryStaffAccountCertificate temporaryStaffAccountCertificate);

    /**
     * 修改数据
     *
     * @param temporaryStaffAccountCertificate 实例对象
     * @return 实例对象
     */
    TemporaryStaffAccountCertificate update(TemporaryStaffAccountCertificate temporaryStaffAccountCertificate);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

    Map<Integer,List<TemporaryStaffAccountCertificate>> mateCertificate(TemporaryStaffAccountCertificate temporaryStaffAccountCertificate);


    String importExcel(List<TemporaryStaffAccountCertificate> temporaryStaffAccountCertificates, Boolean isUpdateSupport, String operName);

    void sendTemporaryStaffAccountCertificate();

}
